Crate egui_web[][src]

Expand description

egui bindings for web apps (compiling to WASM).

This library is an epi backend.

If you are writing an app, you may want to look at eframe instead.

Specifying the size of the egui canvas

For performance reasons (on some browsers) the egui canvas does not, by default, fill the whole width of the browser. This can be changed by overriding epi::App::max_size_points.

Re-exports

pub use backend::*;
pub use wasm_bindgen;
pub use web_sys;

Modules

Mostly a carbon-copy of webgl1.rs.

Structs

Traits

Functions

Log an error to the developer console (console.error(…) in JS)

Log some text to the developer console (console.log(…) in JS)

Log a warning to the developer console (console.warn(…) in JS)

e.g. “#fragment” part of “www.example.com/index.html#fragment”

Current time in seconds (since undefined point in time)

A single touch is translated to a pointer movement. When a second touch is added, the pointer should not jump to a different position. Therefore, we do not calculate the average position of all touches, but we keep using the same touch as long as it is available.

Web sends all all keys as strings, so it is up to us to figure out if it is a real text input or the name of a key.

Attribute Macros